import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()
console.log(servicePath, 'servicePath')

export function orgLazyloadTree (params) {
  return request({
    url: servicePath.system + '/org/lazy-load-tree',
    method: 'get',
    headers: {
      showLoading: true
    },
    params
  })
}

export function putOrg (data) {
  return request({
    url: servicePath.system + '/org',
    method: 'put',
    data
  })
}
